const mongoose = require('./db')
const Schema = mongoose.Schema
const QaSchema = new Schema({
    // 题干
    content: {
        type: String,
        required: true
    },
    // 选项
    choices: {
        type: [String],
        required: false
    },
    answer: {
        type: String,
        required: false
    },
    // 解析
    explain: {
        type: String,
        required: false
    },
    order: {
        type: Number,
        required: true
    },
    examIndex: {
        type: String,
        required: true,
        default: "0"
    }
})

module.exports = QaModel = mongoose.model('qa_1', QaSchema)
